WT_DECLARE_WT_MEMBER(1,JavaScriptFunction,"validate",function(a){var b;b=a.options?a.options.item(a.selectedIndex).text:a.value;b=a.wtValidate.validate(b);this.setValidationState(a,b.valid,b.message,1)});
WT_DECLARE_WT_MEMBER(2,JavaScriptFunction,"setValidationState",function(a,b,d,c){var e=b==1&&(c&2)!=0;c=b!=1&&(c&1)!=0;$(a).toggleClass("Wt-valid",e).toggleClass("Wt-invalid",c);if(typeof a.defaultTT==="undefined")a.defaultTT=a.getAttribute("title")||"";b?a.setAttribute("title",a.defaultTT):a.setAttribute("title",d)});
